﻿using System.Drawing;
using System.Web.UI.WebControls;

namespace AxialWeb
{
	public partial class LabelFlex : System.Web.UI.Page
	{
		public void ShowLabelFlexability()
		{
			lblTest.Text = "I'm flexible!";

			//lblTest.AssociatedControlID = txtInput.ClientID;
			lblTest.Attributes["custom"] = "nice";
			lblTest.BackColor = Color.CornflowerBlue;
			lblTest.BorderColor = Color.Orange;
			lblTest.BorderStyle = BorderStyle.Dashed;
			lblTest.BorderWidth = Unit.Pixel(2);
			lblTest.CssClass = "mynewclass";
			lblTest.Font.Bold = true;
			lblTest.Font.Italic = true;
			lblTest.Font.Overline = true;
			lblTest.Font.Size = new FontUnit("20pt");
			lblTest.Font.Strikeout = true;
			lblTest.Font.Underline = true;
			lblTest.ForeColor = Color.Lime;
			lblTest.Style[System.Web.UI.HtmlTextWriterStyle.FontSize] = "36pt";
			lblTest.TabIndex = 3;
			lblTest.ToolTip = "a tooltip";

			pnlTest.BackColor = Color.LightBlue;
			pnlTest.BorderColor = Color.Orange;
			pnlTest.BorderStyle = BorderStyle.Dashed;
			pnlTest.BorderWidth = Unit.Pixel(2);
			pnlTest.Height = new Unit("200px");
			pnlTest.Width = Unit.Percentage(50);
		}
	}
}
